package config.spring.boot.starter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.ConcurrentHashMap;

/**
 * PropertyUtil
 *
 * @author ybtccc
 * @date 2019/2/20
 */
public class PropertyUtil {
    private static Logger logger = LoggerFactory.getLogger(PropertyUtil.class);

    private static ConcurrentHashMap<String, String> properties = new ConcurrentHashMap<>();

    public static void set(String key, String value) {
        properties.put(key, value);
    }

    public static String get(String key) {
        return properties.get(key);
    }

    public static void remove(String key) {
        properties.remove(key);
    }
}
